package com.tduck.cloud.report.data.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.tduck.cloud.common.entity.SysBaseEntity;
import com.tduck.cloud.common.mybatis.handler.JacksonTypeHandler;
import com.tduck.cloud.report.data.entity.DataSourceConfig;
import com.tduck.cloud.report.data.enums.DataSouceTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.math.BigDecimal;

import com.tduck.cloud.common.entity.BaseEntity;

/**
 * 报数据源管理对象 rp_data_source
 *
 * @author tduck
 * @date 2023-06-23 16:09:05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "rp_data_source", autoResultMap = true)
public class ReportDataSourceEntity extends SysBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 数据源名称
     */
    private String sourceName;
    /**
     * 数据源描述
     */
    private String sourceDesc;
    /**
     * 数据源类型单
     */
    private DataSouceTypeEnum sourceType;
    /**
     * 数据库链接配置
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private DataSourceConfig sourceConfig;





}
